package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.dao.WarehousingEntryDo;
import com.ruoyi.system.domain.WarehousingEntry;
import com.ruoyi.system.response.WarehousingEntryList;

/**
 * 入库单Mapper接口
 *
 * @author tanshen
 * @date 2023-08-21
 */
public interface WarehousingEntryMapper extends BaseMapper<WarehousingEntry> {
    /**
     * 查询入库单
     *
     * @param id 入库单主键
     * @return 入库单
     */
    public WarehousingEntry selectWarehousingEntryById(Long id);

    /**
     * 查询入库单列表
     *
     * @param warehousingEntryDo 入库单
     * @return 入库单集合
     */
    public List<WarehousingEntryList> selectWarehousingEntryList(WarehousingEntryDo warehousingEntryDo);

    /**
     * 新增入库单
     *
     * @param warehousingEntry 入库单
     * @return 结果
     */
    public int insertWarehousingEntry(WarehousingEntry warehousingEntry);

    /**
     * 修改入库单
     *
     * @param warehousingEntry 入库单
     * @return 结果
     */
    public int updateWarehousingEntry(WarehousingEntry warehousingEntry);

    /**
     * 删除入库单
     *
     * @param id 入库单主键
     * @return 结果
     */
    public int deleteWarehousingEntryById(Long id);

    /**
     * 批量删除入库单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarehousingEntryByIds(String[] ids);
}
